package com.springboot.dao;

import com.springboot.entity.SystemUserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.returndata.dto.AddUpdateUserRoleDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author zyj
 * @since 2023-02-24
 */
@Mapper
public interface SystemUserRoleDao extends BaseMapper<SystemUserRoleEntity> {

    void deleteByRoleId(Integer roleId);
    void addUpdateUserRole(@Param("addUpdateResourceDto") AddUpdateUserRoleDto addUpdateResourceDto);

    void deleteByUserId(Integer userId);
}
